package com.wcs.exam.controller.api.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * Api-考试-考试记录-分页-请求参数
 * </p>
 *
 * @author wcs
 * @since 2024-07-10
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Api-考试-考试记录-分页-请求参数")
public class ApiExamRankPageReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "resource.exam.exam.type.not.null")
    @Schema(description = "考试类型(1：模拟考试、2：正式考试)", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer examType;

    @NotNull(message = "resource.exam.relateId.not.null")
    @Schema(description = "关联ID(模拟考试和正式考试为对应的考试ID)", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long relateId;

    @Schema(description = "当前页")
    private int pageCurrent = 1;

    @Schema(description = "每页条数")
    private int pageSize = 20;
}
